package com.rabbitmq.ChattingRoom.service.impl;

import com.rabbitmq.ChattingRoom.service.HistoryMsgService;
import com.rabbitmq.ChattingRoom.service.mapper.HistoryMsgMapper;
import com.rabbitmq.ChattingRoom.util.Entity.HistoryMsg;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class HistoryMsgServiceImpl implements HistoryMsgService {

    @Autowired
    private HistoryMsgMapper mapper;

    @Override
    public Integer insert(HistoryMsg historyMSG) {
        return mapper.insert(historyMSG);
    }
}
